import React from 'react';
import Pagination from 'antd/lib/pagination';

const styles={
    loadTop: {
        height: "3rem"
    }
};

export default class LoadMore extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <div >
                <div id="pagination" style={{color:"rgb(131,131,131)",height: "3rem",textAlign:"center", paddingTop:"0.5rem"}}>
                    <Pagination current={this.props.page} total={this.props.pageCount} pageSize={this.props.defaultPageSize} onChange={(page) => {this.props.pageChange(page)}}/>
                </div>
            </div>);
    }
}